// 角色模块
export namespace Role {
  // 角色列表
  export interface RoleListRes {
    roleId: number;
    roleName: string;
    roleKey: string;
    roleSort: number;
    status: number;
    createTime: string;
    isSuperAdmin: boolean;
  }
  // 角色列表请求参数
  export interface RoleListReq {
    roleName: string;
    roleKey: string;
    status: number;
    beginTime: string;
    endTime: string;
  }
  // 角色详情
  export interface RoleDetailRes {
    roleId: number;
    roleName: string;
    roleKey: string;
    roleSort: number;
    status: number;
    createTime: string;
    remark: string;
    isSuperAdmin: boolean;
    menuIds: number[];
  }
  // 更改角色状态请求参数
  export interface RoleChangeStatusReq {
    roleId: number;
    status: number;
  }

  export interface RoleAuthUserRes {
    isSuperAdmin: boolean;
    userId: number;
    account: string;
    nickName: string;
    email: string;
    phoneNumber: string;
    status: number;
    createTime: string;
  }
  // 角色授权用户请求参数
  export interface RoleAuthUserReq {
    roleId: number;
    account?: string;
    phoneNumber?: string;
  }

  // 批量添加角色授权用户请求参数
  export interface RoleAuthUserAddBatchReq {
    roleId: number;
    userIds: number[];
  }

  // 批量删除角色授权用户请求参数
  export interface RoleAuthUserDeleteBatchReq {
    roleId: number;
    userIds: number[];
  }
}
